#ifndef ANIMATIONDELEGATE_H
#define ANIMATIONDELEGATE_H

#include <QObject>
#include <QWidget>
#include <QMdiArea>

class AnimationDelegate : public QObject
{
public:
    AnimationDelegate();

    AnimationDelegate(QObject* parent = NULL);

    AnimationDelegate(QMdiArea* mdi,QObject* parent = 0);

    ~AnimationDelegate();
    void
    handleTimeout();  //超时处理函数

    virtual void
    timerEvent(
       QTimerEvent *event);

private:

    int m_nTimerID;

    QMdiArea* d_mdi;

};

#endif // ANIMATIONDELEGATE_H
